/*   1:    */ package com.atomikos.icatch.jta;
/*   2:    */ 
/*   3:    */ import java.rmi.Remote;
/*   4:    */ import javax.rmi.CORBA.Tie;
/*   5:    */ import javax.transaction.HeuristicMixedException;
/*   6:    */ import javax.transaction.HeuristicRollbackException;
/*   7:    */ import javax.transaction.NotSupportedException;
/*   8:    */ import javax.transaction.RollbackException;
/*   9:    */ import org.omg.CORBA.BAD_OPERATION;
/*  10:    */ import org.omg.CORBA.ORB;
/*  11:    */ import org.omg.CORBA.Object;
/*  12:    */ import org.omg.CORBA.portable.ResponseHandler;
/*  13:    */ import org.omg.CORBA.portable.UnknownException;
/*  14:    */ import org.omg.CORBA_2_3.portable.ObjectImpl;
/*  15:    */ 
/*  16:    */ public class _UserTransactionServerImp_Tie
/*  17:    */   extends ObjectImpl
/*  18:    */   implements Tie
/*  19:    */ {
/*  20: 48 */   private UserTransactionServerImp target = null;
/*  21: 50 */   private static final String[] _type_ids = { "RMI:com.atomikos.icatch.jta.UserTransactionServer:0000000000000000" };
/*  22:    */   
/*  23:    */   public void setTarget(Remote target)
/*  24:    */   {
/*  25: 54 */     this.target = ((UserTransactionServerImp)target);
/*  26:    */   }
/*  27:    */   
/*  28:    */   public Remote getTarget()
/*  29:    */   {
/*  30: 59 */     return this.target;
/*  31:    */   }
/*  32:    */   
/*  33:    */   public Object thisObject()
/*  34:    */   {
/*  35: 64 */     return this;
/*  36:    */   }
/*  37:    */   
/*  38:    */   public void deactivate()
/*  39:    */   {
/*  40: 69 */     _orb().disconnect(this);
/*  41: 70 */     _set_delegate(null);
/*  42: 71 */     this.target = null;
/*  43:    */   }
/*  44:    */   
/*  45:    */   public ORB orb()
/*  46:    */   {
/*  47: 76 */     return _orb();
/*  48:    */   }
/*  49:    */   
/*  50:    */   public void orb(ORB orb)
/*  51:    */   {
/*  52: 81 */     orb.connect(this);
/*  53:    */   }
/*  54:    */   
/*  55:    */   public String[] _ids()
/*  56:    */   {
/*  57: 86 */     return _type_ids;
/*  58:    */   }
/*  59:    */   
/*  60:    */   public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _in, ResponseHandler reply)
/*  61:    */     throws org.omg.CORBA.SystemException
/*  62:    */   {
/*  63:    */     try
/*  64:    */     {
/*  65: 93 */       org.omg.CORBA_2_3.portable.InputStream in = (org.omg.CORBA_2_3.portable.InputStream)_in;
/*  66: 94 */       switch (method.length())
/*  67:    */       {
/*  68:    */       case 5: 
/*  69: 96 */         if (method.equals("begin"))
/*  70:    */         {
/*  71: 97 */           int arg0 = in.read_long();
/*  72:    */           String result;
/*  73:    */           try
/*  74:    */           {
/*  75:100 */             result = this.target.begin(arg0);
/*  76:    */           }
/*  77:    */           catch (javax.transaction.SystemException ex)
/*  78:    */           {
/*  79:102 */             String id = "IDL:javax/transaction/SystemEx:1.0";
/*  80:103 */             org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream)reply.createExceptionReply();
/*  81:    */             
/*  82:105 */             out.write_string(id);
/*  83:106 */             out.write_value(ex, javax.transaction.SystemException.class);
/*  84:    */             
/*  85:108 */             return out;
/*  86:    */           }
/*  87:    */           catch (NotSupportedException ex)
/*  88:    */           {
/*  89:110 */             String id = "IDL:javax/transaction/NotSupportedEx:1.0";
/*  90:111 */             org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream)reply.createExceptionReply();
/*  91:    */             
/*  92:113 */             out.write_string(id);
/*  93:114 */             out.write_value(ex, NotSupportedException.class);
/*  94:115 */             return out;
/*  95:    */           }
/*  96:117 */           org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream)reply.createReply();
/*  97:    */           
/*  98:119 */           out.write_value(result, String.class);
/*  99:120 */           return out;
/* 100:    */         }
/* 101:    */       case 6: 
/* 102:123 */         if (method.equals("commit"))
/* 103:    */         {
/* 104:124 */           String arg0 = (String)in.read_value(String.class);
/* 105:    */           try
/* 106:    */           {
/* 107:126 */             this.target.commit(arg0);
/* 108:    */           }
/* 109:    */           catch (RollbackException ex)
/* 110:    */           {
/* 111:128 */             String id = "IDL:javax/transaction/RollbackEx:1.0";
/* 112:129 */             org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream)reply.createExceptionReply();
/* 113:    */             
/* 114:131 */             out.write_string(id);
/* 115:132 */             out.write_value(ex, RollbackException.class);
/* 116:133 */             return out;
/* 117:    */           }
/* 118:    */           catch (HeuristicMixedException ex)
/* 119:    */           {
/* 120:135 */             String id = "IDL:javax/transaction/HeuristicMixedEx:1.0";
/* 121:136 */             org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream)reply.createExceptionReply();
/* 122:    */             
/* 123:138 */             out.write_string(id);
/* 124:139 */             out.write_value(ex, HeuristicMixedException.class);
/* 125:140 */             return out;
/* 126:    */           }
/* 127:    */           catch (HeuristicRollbackException ex)
/* 128:    */           {
/* 129:142 */             String id = "IDL:javax/transaction/HeuristicRollbackEx:1.0";
/* 130:143 */             org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream)reply.createExceptionReply();
/* 131:    */             
/* 132:145 */             out.write_string(id);
/* 133:146 */             out.write_value(ex, HeuristicRollbackException.class);
/* 134:147 */             return out;
/* 135:    */           }
/* 136:    */           catch (javax.transaction.SystemException ex)
/* 137:    */           {
/* 138:149 */             String id = "IDL:javax/transaction/SystemEx:1.0";
/* 139:150 */             org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream)reply.createExceptionReply();
/* 140:    */             
/* 141:152 */             out.write_string(id);
/* 142:153 */             out.write_value(ex, javax.transaction.SystemException.class);
/* 143:    */             
/* 144:155 */             return out;
/* 145:    */           }
/* 146:157 */           return reply.createReply();
/* 147:    */         }
/* 148:    */       case 8: 
/* 149:161 */         if (method.equals("rollback"))
/* 150:    */         {
/* 151:162 */           String arg0 = (String)in.read_value(String.class);
/* 152:    */           try
/* 153:    */           {
/* 154:164 */             this.target.rollback(arg0);
/* 155:    */           }
/* 156:    */           catch (javax.transaction.SystemException ex)
/* 157:    */           {
/* 158:166 */             String id = "IDL:javax/transaction/SystemEx:1.0";
/* 159:167 */             org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream)reply.createExceptionReply();
/* 160:    */             
/* 161:169 */             out.write_string(id);
/* 162:170 */             out.write_value(ex, javax.transaction.SystemException.class);
/* 163:    */             
/* 164:172 */             return out;
/* 165:    */           }
/* 166:174 */           return reply.createReply();
/* 167:    */         }
/* 168:    */       case 9: 
/* 169:178 */         if (method.equals("getStatus"))
/* 170:    */         {
/* 171:179 */           String arg0 = (String)in.read_value(String.class);
/* 172:    */           int result;
/* 173:    */           try
/* 174:    */           {
/* 175:182 */             result = this.target.getStatus(arg0);
/* 176:    */           }
/* 177:    */           catch (javax.transaction.SystemException ex)
/* 178:    */           {
/* 179:184 */             String id = "IDL:javax/transaction/SystemEx:1.0";
/* 180:185 */             org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream)reply.createExceptionReply();
/* 181:    */             
/* 182:187 */             out.write_string(id);
/* 183:188 */             out.write_value(ex, javax.transaction.SystemException.class);
/* 184:    */             
/* 185:190 */             return out;
/* 186:    */           }
/* 187:192 */           org.omg.CORBA.portable.OutputStream out = reply.createReply();
/* 188:193 */           out.write_long(result);
/* 189:194 */           return out;
/* 190:    */         }
/* 191:    */       case 15: 
/* 192:197 */         if (method.equals("setRollbackOnly"))
/* 193:    */         {
/* 194:198 */           String arg0 = (String)in.read_value(String.class);
/* 195:    */           try
/* 196:    */           {
/* 197:200 */             this.target.setRollbackOnly(arg0);
/* 198:    */           }
/* 199:    */           catch (javax.transaction.SystemException ex)
/* 200:    */           {
/* 201:202 */             String id = "IDL:javax/transaction/SystemEx:1.0";
/* 202:203 */             org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream)reply.createExceptionReply();
/* 203:    */             
/* 204:205 */             out.write_string(id);
/* 205:206 */             out.write_value(ex, javax.transaction.SystemException.class);
/* 206:    */             
/* 207:208 */             return out;
/* 208:    */           }
/* 209:210 */           return reply.createReply();
/* 210:    */         }
/* 211:    */         break;
/* 212:    */       }
/* 213:214 */       throw new BAD_OPERATION();
/* 214:    */     }
/* 215:    */     catch (org.omg.CORBA.SystemException ex)
/* 216:    */     {
/* 217:216 */       throw ex;
/* 218:    */     }
/* 219:    */     catch (Throwable ex)
/* 220:    */     {
/* 221:218 */       throw new UnknownException(ex);
/* 222:    */     }
/* 223:    */   }
/* 224:    */ }


/* Location:           C:\myfile\mysoft\apache-maven-3.5.0-bin\apache-maven-3.5.0\myrep\com\atomikos\transactions-jta\3.7.0\transactions-jta-3.7.0.jar
 * Qualified Name:     com.atomikos.icatch.jta._UserTransactionServerImp_Tie
 * JD-Core Version:    0.7.0.1
 */